<template>
	<view>
		<view style="margin:20rpx 30rpx 40rpx 20rpx;">
			<view v-for="(pingJiaItem,index) in PingjiaList" :key="index"
			:style="{padding:'30rpx 20rpx 26rpx 34rpx',
			borderBottom:(index+1)!==PingjiaList.length?'1px solid rgb(230,230,230)':'none'}">
				<view class="cflex-r" style="justify-content: space-between;">
					<view  class="cflex-r">
						<image mode="widthFix" :src="pingJiaItem.uAvatar" 
						style="width:70rpx;height:74rpx;border-radius:50%;;"></image>
						<view class="cflex-c u-m-l-16" >
							<view style="font-weight:600;">{{pingJiaItem.userName}}</view>
							<view class='cflex-r u-m-t-6' style="margin-left:-5rpx;align-items:center;">
								<image :src="'../../static/star/smallStar'+pingJiaItem.score+'.png'"
								style="width: 125rpx;height:0rpx;" mode="widthFix" use-slot="false"></image>
							</view>
							<view class="u-m-t-30">{{pingJiaItem.content}}</view>
						</view>
					</view>
					<view style="color:rgb(170,170,170);margin-top:6rpx;">{{pingJiaItem.addtime}}</view>
				</view>
			</view>
		</view><!-- 以上为精选评价版块-->
		<view v-if="PingjiaList.length==0" style="padding:50rpx 0rpx;">
			<u-empty margin-top="50" icon-size="80" text="暂无精选评价" mode="list"></u-empty>
		</view>
	</view><!-- 最大的view -->
</template>
<script>
	export default {
		data() {
			return {
				wid:null,
				PingjiaList:{}
			}
		},
		onShow() {
			this.httpRequest()
		},
		onLoad(options) {
			 //console.log("options",options)
			this.wid=options.wid;//存储计师id
		},
		computed: {
			
		},
		methods: {
			httpRequest(){
				this.$request("kehu/jishi/appraiseList",{wid:this.wid}).then(res=>{
					this.PingjiaList=res.data||[];
				});
			},
		}
	}
</script>

<style>
	page {
		background-color:white;
	}
</style>
